/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 在这里编写类的功能描述
 *
 * @author IIS72013
 * @created 2018/4/21
 */
@Entity
@Table(name = "euc_message_client_end")
public class MessageClientEnd implements Serializable {

	private static final long serialVersionUID = -1381354785060807726L;

	@Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
  
    
    /**
     * 客户ID
     */
    @Column(name = "client_id" ,columnDefinition = "int default 0  comment '客户ID'")
    private Integer clientId;
    
    
    /**
     * 客户名
     */
    @Column(name = "client_name",columnDefinition = "varchar(250) default '' comment '客户名'")
    private String clientName;
    
    
    /**
     * 客户类型：个人，企业
     */
    @Column(name = "client_type",columnDefinition = "varchar(50) default '' comment '客户类型：个人，企业'")
    private String clientType;
    
    /**
     * 客户合同ID
     */
    @Column(name = "contract_id" ,columnDefinition = "bigint default 0  comment '客户合同ID'")
    private Integer contractId;
    
    
    /**
     * 客户合同到期时间
     */
	@JSONField(name="end_date",format="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "end_date",nullable = true, columnDefinition = "datetime")
    private Date endDate;
	
	
	 /**
     * 消息内容
     */
    @Column(name = "content",columnDefinition = "varchar(255) default '' comment '预约参观联系人电话'")
    private String content;
   

    /**
     * 消息所属人
     */
    @Column(name = "user_id" ,columnDefinition = "int default 0  comment '消息所属人'")
    private Integer userId;
    
    
    /**
     * 消息状态
     */
    @Column(name = "message_status" ,columnDefinition = "int default 0  comment '消息状态:0 未读；1 已读'")
    private Integer messageStatus;
    
    
    /**
     * 消息生成时间
     */
	@JSONField(name="create_time",format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "create_time",nullable = true, columnDefinition = "datetime")
    private Date createTime;
	
	
	/**
     * 消息读取时间
     */
	@JSONField(name="read_time",format="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "read_time",nullable = true, columnDefinition = "datetime")
    private Date readTime;


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public Integer getClientId() {
		return clientId;
	}


	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}


	public String getClientName() {
		return clientName;
	}


	public void setClientName(String clientName) {
		this.clientName = clientName;
	}


	public String getClientType() {
		return clientType;
	}


	public void setClientType(String clientType) {
		this.clientType = clientType;
	}


	public Integer getContractId() {
		return contractId;
	}


	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}


	public Date getEndDate() {
		return endDate;
	}


	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public Integer getUserId() {
		return userId;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public Integer getMessageStatus() {
		return messageStatus;
	}


	public void setMessageStatus(Integer messageStatus) {
		this.messageStatus = messageStatus;
	}


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getReadTime() {
		return readTime;
	}


	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
	
}
